﻿@model _2._18._2015_MoviesInClass.Models.MovieListViewModel
@{
    ViewBag.Title = "Home Page";
}

<h3>Hello, @Model.UserName</h3>
<h4>Average Rating: @Model.AverageRating</h4>
<div>
    @Html.ActionLink("Create Movie", "Create")
</div>
<div class="row">
    <div class="col-md-4">
        @foreach(var m in Model.Movies)
        {
            <h2>@m.Title</h2>
            <div><img src="@m.PosterUrl" width="400" height="400" /></div>
            <div>Rating: @m.Rating</div>
        }
    </div>    
</div>